function bGPU = useGPU(netname)
if nargin > 0 && ...
        (isempty(netname) || any(strcmp(netname, {'BICUBIC', 'SRCNN', 'FSRCNN', 'VDSR0'}))) % || str(netname).isbeginwith()))
    % VDSR0 uses MatConvNet
    % gpu_id = eval(solver_mode(end));
    % gpuDevice(gpu_id + 1);
    bGPU = false;
    return
end

% bGPU = ~strcmp(filesep, '\');
% bGPU = isunix;
bGPU = gpuDeviceCount > 0;
